Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test to demonstrate issue 13 is not an issue #20

Merged
merged 7 commits into from
Mar 23, 2024
Merged

Conversation

aerorahul
Copy link
Contributor

Description
This PR:

  • adds a test to demonstrate the stderr file is not binary by reading the contents and printing them

Fixes #13

Type of change

  • New feature (non-breaking change which adds functionality) Adds a test.

How Has This Been Tested?

  • pynorms
  • pytests

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes need updates to the documentation. I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • Any dependent changes have been merged and published

Copy link

codecov bot commented Mar 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.88%. Comparing base (942b90b) to head (6ff9b2f).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #20   +/-   ##
========================================
  Coverage    50.88%   50.88%           
========================================
  Files           16       16           
  Lines         1476     1476           
  Branches       313      313           
========================================
  Hits           751      751           
  Misses         669      669           
  Partials        56       56           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

# Depending on the OS, the error message may vary
# This was seen on macOS
# assert stderr == "ls: unrecognized option `--myopt'" + '\n' + \
# "usage: ls [-@ABCFGHILOPRSTUWabcdefghiklmnopqrstuvwxy1%,] [--color=when] [-D format] [file ...]" + '\n'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if this is a planned future test, but if so, the Python string library provides an easy way to define alphabet strings (see the RTDs). Other than that, approved.

@aerorahul aerorahul merged commit 81bfec0 into develop Mar 23, 2024
15 checks passed
@aerorahul aerorahul deleted the test/issue-13 branch March 23, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Executable class error file path is binary format.
2 participants